package capsolver_go

// Proxy https://docs.capsolver.com/en/guide/api-how-to-use-proxy/
type Proxy struct {
	// Proxy optional
	// # Supports the socks5 protocol + authentication
	// socks5:192.191.100.10:4780:user:pwd
	// # Supports http + authentication
	// http:192.191.100.10:4780:user:pwd
	// # http is used by default
	// 192.191.100.10:4780:user:pwd
	// # Use url dns
	// http://user:pwd@ip:port
	// # Use the url socks5.
	// socks5://user:pwd@ip:port
	Proxy string `json:"proxy,omitempty" mapstructure:"proxy,omitempty"`

	// ProxyType optional: socks5 | http | https
	ProxyType     string `json:"proxyType,omitempty" mapstructure:"proxyType,omitempty"`
	ProxyAddress  string `json:"proxyAddress,omitempty" mapstructure:"proxyAddress,omitempty"`   // optional
	ProxyPort     int    `json:"proxyPort,omitempty" mapstructure:"proxyPort,omitempty"`         // optional
	ProxyLogin    string `json:"proxyLogin,omitempty" mapstructure:"proxyLogin,omitempty"`       // optional
	ProxyPassword string `json:"proxyPassword,omitempty" mapstructure:"proxyPassword,omitempty"` // optional
}
